<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 200px;
            height: 200px;
            background-color: pink;
            padding: 50px;
            margin: 50px;
            text-align: center;


            border: 1px solid black;
            border-top: 1px solid red;
            border-bottom: 1px dashed yellow;
        }
    </style>
</head>
<body>
    <div>盒子边框线</div>
</body>
</html>